{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/header.html"}

<!--header stop-->
{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/common/headerusertitle.html"}
<!--header end-->
<!--content stop-->
<section class="box-user">


    <ul class="user_s">
        <li {if $status eq 'all'}class="curr"{/if}><a href="/user/saleorder/status/all">全部</a></li>
        <li {if $status eq 'audit'}class="curr"{/if}><a href="/user/saleorder/status/audit">待确认</a></li>
        <li {if $status eq 'deal'}class="curr"{/if}><a href="/user/saleorder/status/deal">交易中</a></li>
        <li {if $status eq 'done'}class="curr"{/if}><a href="/user/saleorder/status/done">完成</a></li>
        <li {if $status eq 'cancel'}class="curr"{/if}><a href="/user/saleorder/status/cancel">取消</a></li>
    </ul>

    <ul class="qm_list">
        {foreach from=$list key=key item=item}
        <li>
            <div class="qm_text">
                <p>
                    <span class="pl5p green fr">{$item.status}</span>

                    <span class="pr5p">{$item.cate_name}</span>
                    <span class="pr5p">{$item.product_name}</span>
                    <span class="pr10p">{$item.brand_name}</span>
                    <span class="pr10p gray">订单号:{$item.order_key}</span>
                    <span class="pr10p orange" style="display: block;">单价:￥{$item.price}/吨 　数量:{$item.num}吨 </span>
                </p>
                <P class="gray">求购公司：{$item.ibusiness_name}</P>
                <p class="gray">下单时间: {$item.update_time}</p>
            </div>
            <a href="/user/saleorderdetail/id/{$item.id}" class="qm_cz">详情</a>
        </li>
        {/foreach}
    </ul>

</section>

{include file = $smarty.const.APPLICATION_PATH|cat:"/application/views/footer.html"}
